import { constants } from "node:os";
import { dlopen } from "node:process";
import { fileURLToPath } from "node:url";

const module = {
  exports: {
    foo: () => "hello world",
  },
};
dlopen(
  module,
  fileURLToPath(new URL("local.node", import.meta.url)),
  constants.dlopen.RTLD_NOW,
);
console.log(module.exports.foo());

console.log(process.versions);
